import request from '@/utils/request'

// 查询防疫物资管理列表
export function listRuralVirusPreventionMaterials(query) {
  return request({
    url: '/rural/ruralVirusPreventionMaterials/list',
    method: 'get',
    params: query
  })
}

// 查询防疫物资管理详细
export function getRuralVirusPreventionMaterials(id) {
  return request({
    url: '/rural/ruralVirusPreventionMaterials/' + id,
    method: 'get'
  })
}

// 新增防疫物资管理
export function addRuralVirusPreventionMaterials(data) {
  return request({
    url: '/rural/ruralVirusPreventionMaterials',
    method: 'post',
    data: data
  })
}

// 修改防疫物资管理
export function updateRuralVirusPreventionMaterials(data) {
  return request({
    url: '/rural/ruralVirusPreventionMaterials',
    method: 'put',
    data: data
  })
}

// 删除防疫物资管理
export function delRuralVirusPreventionMaterials(id) {
  return request({
    url: '/rural/ruralVirusPreventionMaterials/' + id,
    method: 'delete'
  })
}
